﻿<?php
/*
+--------------------------------------------------------------------------
|   Arka-Tech Web Application v1.2.0
|   ========================================
|   by Christopher Hall
|   (c) 2009 Arka-Tech Productions
|   http://arka-tech.net
|   ========================================
|   Web: http://www.SITENAME.com
|   Time: Sat, 28 Feb 2009 9:05 AM
|   Release: RmVicnVhcnkgMjAwOSBMYXVuY2ggNA==
|   Email: Arkahn@live.ca
|   Licence Info: http://www.arka-tech.net/default.php?page=license
+---------------------------------------------------------------------------
|
|   > Display script
|   > Script written by Christopher Hall
|   > Date started: 14th February 2009
|
+--------------------------------------------------------------------------
*/
//------------------------------------------------------
// Required Statements
//------------------------------------------------------
require_once( 'GLOBAL.php' );
#variable  replace  badwords, with, in this statement.
$page = str_replace($badwords, "", $_GET['page']);
#variable     replace  badtext,  with,  in this statement.
$safepage = str_replace($badtext, "", $page);
	
$pagetitle = $sitename." ~ ".$safepage;
if ($safepage == $pagearray || $safepage == $userpagearray) {
	echo "<html>
	<head>
	<title>404 Not Found</title>
	</head>
	<body>
	<p>Error: 404 Not Found</p>
	</body>
	</html>";
} else {
echo "<!--a debugger for developers, this comment includes the page variable in it. YOUR PAGE IS: $safepage-->";
?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
	<head>
		<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
		<title><?php echo $pagetitle; ?></title>
		<link href="<?php echo $CSS ?>" rel="stylesheet" type="text/css" />
		<SCRIPT src="http://CORE.arka-tech.net/ATWA/scripts/jquery-1.2.3.min.js" type=text/javascript></SCRIPT>
		<SCRIPT src="GLOBAL/scripts/jquery.easydrag.js" type=text/javascript></SCRIPT>
		<SCRIPT type=text/javascript>
			//Drag Capability
			$(function(){
				// add drag and drop functionality to #taskbar and #icon
				$("#footer").easydrag(true);
			});
		</SCRIPT>
	</head>

	<body>
		<div align="center">
	    	<div class="wrapper">
    	   		<div id="header">
					<div align="center"><h1><?php echo $pagetitle; ?></h1></div>
					<div align="center"><h3><?php echo $safepage; ?></h3></div>
				</div><!-- header -->
				<ul id="menu">
					<?php include ('menu.php'); ?>
				</ul><!-- menu -->
				<div class="content">
					<div id="left-content">
						<p id="edit">Last edited <?php echo $date; ?></p>
						<p><?php include($safepage.'/menu.php'); ?></p>
					</div><!-- left content -->
					<div id="right-content">
    	   				<?php include($safepage.'/index.php'); ?>
					</div><!-- right-content -->
				</div><!-- content -->
				<div id="footer">
					<?php
						//------------------------------------------------------
						// Print the copyright message with a border.
						//------------------------------------------------------
						include ("CORE/copyright.php");
					?>
				</div> <!-- footer -->
       		</div><!-- wrapper -->
		</div>
	</body>
</html>
<?php } ?>